<!DOCTYPE html>
<html>
  <head>
    <meta charset="UTF-8" />
    <!-- import CSS -->

  </head>
  <body>
    <div class="box">
        <div class="imgBox">
            <img src="image/tou.png" alt="">
        </div>
        <div class="content">
            <div class="text-content">
                <div class="title">
                    <h4>杨可</h4>
                    <p>移动2131</p>
                </div>
                <div class="date">
                    <div class="date-text">
                        <h5>跑步、羽毛球</h5>
                        <p>爱好</p>
                    </div>
                    <div class="date-text">
                        <h5>男</h5>
                        <p>性别</p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div class="box">
      <div class="imgBox">
          <img src="image/tou.png" alt="">
      </div>
      <div class="content">
          <div class="text-content">
              <div class="title">
                  <h4>谢锦涛</h4>
                  <p>移动2131</p>
              </div>
              <div class="date">
                  <div class="date-text">
                      <h5>唱歌、画画</h5>
                      <p>爱好</p>
                  </div>
                  <div class="date-text">
                      <h5>男</h5>
                      <p>性别</p>
                  </div>
              </div>
          </div>
      </div>
  </div>

  <div class="box">
    <div class="imgBox">
        <img src="image/tou.png" alt="">
    </div>
    <div class="content">
        <div class="text-content">
            <div class="title">
                <h4>周澜</h4>
                <p>移动2131</p>
            </div>
            <div class="date">
                <div class="date-text">
                    <h5>学习、旅行</h5>
                    <p>爱好</p>
                </div>
                <div class="date-text">
                    <h5>男</h5>
                    <p>性别</p>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="box">
  <div class="imgBox">
      <img src="image/tou.png" alt="">
  </div>
  <div class="content">
      <div class="text-content">
          <div class="title">
              <h4>陈乃钦</h4>
              <p>移动2131</p>
          </div>
          <div class="date">
              <div class="date-text">
                  <h5>听歌、拍照</h5>
                  <p>爱好</p>
              </div>
              <div class="date-text">
                  <h5>男</h5>
                  <p>性别</p>
              </div>
          </div>
      </div>
  </div>
</div>

<div class="box">
  <div class="imgBox">
      <img src="image/tou.png" alt="">
  </div>
  <div class="content">
      <div class="text-content">
          <div class="title">
              <h4>张怡阳</h4>
              <p>移动2131</p>
          </div>
          <div class="date">
              <div class="date-text">
                  <h5>篮球、排球</h5>
                  <p>爱好</p>
              </div>
              <div class="date-text">
                  <h5>男</h5>
                  <p>性别</p>
              </div>
          </div>
      </div>
  </div>
</div>
    
</body>
<style>
  * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100vh;
  background-image: linear-gradient(45deg, #405fc1, #ffaa1c);
}
.box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 300px;
  height: 200px;
  border-radius: 20px;
  background-color: #fff;
  transition: 0.6s;
}
.box .imgBox {
  overflow: hidden;
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 120px;
  border-radius: 20px;
  transition: 0.6s;
}
.box .imgBox img {
  width: 100%;
  height: 100%;
}
.box .content {
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  height: 100%;
}
.box .content .text-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateY(110px);
  width: 100%;
  height: 190px;
  padding: 20px 40px;
  transition: 0.6s;
}
.box .content .text-content .title {
  text-align: center;
}
.box .content .text-content .title p {
  margin-top: 5px;
  font-size: 12px;
  color: #707070;
}
.box .content .text-content .date {
  display: flex;
  justify-content: space-between;
}
.box .content .text-content .date .date-text {
  text-align: center;
}
.box .content .text-content .date .date-text p {
  font-size: 12px;
  color: #707070;
}

.box:hover {
  height: 400px;
}
.box:hover .imgBox {
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
}
.box:hover .content .text-content {
  transform: translateY(0px);
}
</style>
</html>
